#ifndef TMUSERCTRL_H
#define TMUSERCTRL_H

#include <QObject>
#include <QtCore>
#include "Ice/Ice.h"
#include "RobotDef.h"
#include <QTime>
#include <QTimer>
#include <QThread>

class MyTImerTask : virtual public IceUtil::TimerTask
{
public:
     void runTimerTask();
};
typedef IceUtil::Handle<MyTImerTask> MyTimerTaskPtr;

class TMUserCtrl : public QObject,public NetWorkRobot::UserManger
{
    Q_OBJECT
public:
    explicit TMUserCtrl(QObject *parent=0);

    bool connRobot(const std::string &userName, const std::string &mac, const Ice::Current &);
    bool disConnRobot(const std::string &userName,const std::string &mac, const Ice::Current &);
    void robotList(const std::string &userName, Ice::StringSeq &list, const Ice::Current &);
    std::string send(const std::string &userName,const std::string &mac,const std::string &content,const Ice::Current &);

private:
    QMap<QString,QString> m_OnlineUserMap;
};

#endif // TMUSERCTRL_H
